package com.woniu.new_orange.service_model_gao.service.impl;

import com.woniu.new_orange.entity.VisitRecord;
import com.woniu.new_orange.mapper.VisitRecordMapper;
import com.woniu.new_orange.service_model_gao.service.VisitRecordService;
import com.woniu.new_orange.service_model_gao.vo.VisitRecordVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Program: new_orange->VisitRecordServiceImpl
 * @Description:
 * @Author: gao chaozhe
 * @Date: 2023-02-02 16:53
 * @Version： 1.0
 **/
@Service
public class VisitRecordServiceImpl implements VisitRecordService {
    @Autowired
    private VisitRecordMapper visitRecordMapper;
    @Override
    public List<VisitRecordVo> selectAll() {
        return visitRecordMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return visitRecordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(VisitRecord record) {
        return visitRecordMapper.insert(record);
    }

    @Override
    public int insertSelective(VisitRecord record) {
        return visitRecordMapper.insertSelective(record);
    }

    @Override
    public VisitRecord selectByPrimaryKey(Long id) {
        return visitRecordMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(VisitRecord record) {
        return visitRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(VisitRecord record) {
        return visitRecordMapper.updateByPrimaryKey(record);
    }
}
